﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AlternateSkuList.aspx.cs" Inherits="WMS6.Web.Configuration.AlternateSkuList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Configuration/AlternateSkuQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>AlternateSkuList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.select.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <base target="_self" /> 
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){            
            var action = document.getElementById("hdnActionID").value;
            if(action != null && action != "")
            {
                var array = action.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initListPage();
            }
        }   
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "AlternateSkuQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>    
</head>
<body>
    <form id="form1" runat="server">
    <div>    
          <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblAlternateSkuList" runat="server" 
                            CssClass="label_header"  Text="别名列表" 
                            meta:resourcekey="lblAlternateSkuList" ></asp:Label></td>                        
             
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
         <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                                       
                <div id="div_List">
                    
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    
                    <asp:GridView ID="gvAlternateSku" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        OnSelectedIndexChanging="gvAlternateSku_SelectedIndexChanging" OnRowDataBound="gvAlternateSku_RowDataBound" 
                        OnSorting="gvAlternateSku_Sorting" CssClass="gridview" DataKeyNames="OWNER_ID,SKU_ID,ALT_SKU_ID,VENDOR_ID,PACK_ID,DEFAULT_UOM_ID,TYPE"
                        PageSize="20" Width="1000px" meta:resourcekey="gvAlternateSku">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" 
                                meta:resourcekey="BoundField">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField ShowHeader="False" meta:resourcekey="TemplateField">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnSelectOwner" runat="server" CausesValidation="False" CommandName="Select"
                                        
                                        Text="&lt;img src=&quot;../Images/select.gif&quot; class=&quot;img&quot; 
                                        style=&quot;border:none 0px blue;&quot; alt=&quot;select&quot; __designer:mapid=&quot;851&quot;/&gt;" 
                                        meta:resourcekey="lnkbtnSelectOwner"></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" 
                                SortExpression="OWNER_ID" meta:resourcekey="OWNER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" 
                                SortExpression="SKU_ID" meta:resourcekey="SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ALT_SKU_ID" HeaderText="别名" FooterText="替代料代码" 
                                SortExpression="ALT_SKU_ID" meta:resourcekey="ALT_SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="描述" HeaderText="描述" SortExpression="Descr" >
                                <ItemTemplate>
                                    <asp:Label ID="lblSkuDescr" runat="server" 
                                        Text='<%# Eval("Descr").ToString() %>' meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />       
                             </asp:TemplateField>
                            <asp:BoundField DataField="VENDOR_ID" HeaderText="供应商代码" FooterText="供应商代码" 
                                SortExpression="VENDOR_ID" meta:resourcekey="VENDOR_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PACK_ID" HeaderText="包装代码" FooterText="包装代码" 
                                SortExpression="PACK_ID" meta:resourcekey="PACK_ID">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DEFAULT_UOM_ID" HeaderText="默认计量单位" FooterText="默认计量单位"
                                SortExpression="DEFAULT_UOM_ID" meta:resourcekey="DEFAULT_UOM_ID">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TYPE" HeaderText="类型" FooterText="类型" 
                                SortExpression="TYPE" meta:resourcekey="TYPE">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    </div>        
                    <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                    </div>
    </ContentTemplate>
          
           </asp:UpdatePanel>   
        
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>" CssClass="button" 
                            OnClientClick="javascript:returnSearch();return false;" 
                             />
                    </td>
                    <td>
                     
                    </td>
                    <td>
                      
                    </td>
                </tr>
            </table>
        </div>      
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
      <input type="hidden" id="hdnRtnValue" runat="server" />   
        
    </form>
</body>
</html>

